// 设备api
import request from '@/utils/request'

// 获取所有设备
export function queryAllByPage(query) {
  return request({
    url: '/device/queryAllByPage',
    method: 'get',
    params: query
  })
}

// 删除某个设备
export function deletes(query) {
  return request({
    url: '/device/deletes',
    method: 'delete',
    data: query
  })
}

// 删除某个设备
export function update(query) {
  return request({
    url: '/device/update',
    method: 'post',
    data: query
  })
}

// 获取关联设备信息
export function selectCameraByDeviceId(query) {
  return request({
    url: '/device/selectCameraByDeviceId',
    method: 'get',
    params: query
  })
}

// 获取关联设备信息
export function bindCamera(query) {
  return request({
    url: '/device/bindCamera',
    method: 'post',
    data: query
  })
}

